package com.example.zjx8969.myapplication.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface BookDao {
    @Insert
    long insert(Book book);

    @Delete
    void delete(Book book);

    @Query("select * from book")
    List<Book> query();

    @Query("select * from book where bookId in (:ids)")
    List<Book> query(String[] ids);
}
